﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.ServiceProxy.DataServiceRef;
using CPPEI.Coolzon.UI.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Visifire.Charts;

namespace CPPEI.Coolzon.UI.DataPartLib
{
    /// <summary>
    /// Interaction logic for DataChartBar.xaml
    /// </summary>
    [System.ComponentModel.DisplayName("条形图")]
    [XPartIcon("pack://application:,,,/CPPEI.Coolzon.UI.DataPartLib;component/Images/PartIcons/条形图.png")]
    [XPart("ChartBar", "条形图")]
    public partial class DataChartBar : DataChartAxisBase
    {
        public DataChartBar()
        {
            InitializeComponent();
        }
        protected override RenderAs GetRender(string dataSeriesId)
        {
            return RenderAs.Bar;
        }

        protected override Chart GetChart()
        {
            return _ctlChart;
        }
    }
}
